package com.litchishell;

import java.awt.*;

/**
 * @author LitchiShell
 * @description:
 * @create 2022-02-02
 */
public class Gold extends CommonObject{

    Gold() {
        this.x = (int) (Math.random() * 700);
        this.y = (int) (Math.random() * 550 + 300);
        this.width = 52;
        this.height = 52;
        this.flag = false;
        this.weight = 50;
        this.integral = 4;
        this.type = 1;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold1.gif");
    }
}

class minGold extends Gold {
    minGold() {
        this.width = 36;
        this.height = 36;
        this.weight = 15;
        this.integral = 2;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold0.gif");
    }
}

class maxGold extends Gold {
    maxGold() {
        this.width = 105;
        this.height = 105;
        this.weight = 60;
        this.integral = 8;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold2.gif");
    }
}

